package cminus.graph;


public class Node {
	private int id;
	private String str;
	private int childnum=0;
	private int line=0;
	private int visited=0;
	private int visited1=0;
	private int visited2=0;
	private int layernum=0;
	public int getLayernum() {
		return layernum;
	}
	public void setLayernum(int layernum) {
		this.layernum = layernum;
	}
	public int getVisited2() {
		return visited2;
	}
	public void setVisited2(int visited2) {
		this.visited2 = visited2;
	}
	public int getVisited1() {
		return visited1;
	}
	public void setVisited1(int visited1) {
		this.visited1 = visited1;
	}
	private double juli=0;
	public double getJuli() {
		return juli;
	}
	public void setJuli(double juli) {
		this.juli = juli;
	}
	public int getLine() {
		return line;
	}
	public void setLine(int line) {
		this.line = line;
	}
	public int getChildnum() {
		return childnum;
	}
	public void setChildnum(int childnum) {
		this.childnum = childnum;
	}
	private Node child1=null;
	private Node child2=null;
	private Node child3=null;
	private Node child4=null;
	private Node child5=null;
	private Node child[]=new Node[5];
	

	private int layer;
	public int getLayer() {
		return layer;
	}
	public void setLayer(int layer) {
		this.layer = layer;
	}
	private double x;
	private double y;
	public double getX() {
		return x;
	}
	public void setX(double x) {
		this.x = x;
	}
	public double getY() {
		return y;
	}
	public void setY(double y) {
		this.y = y;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getStr() {
		return str;
	}
	public void setStr(String str) {
		this.str = str;
	}
	public Node getChild1() {
		return child1;
	}
	public void setChild1(Node child1) {
		this.child1 = child1;
	}
	public Node getChild2() {
		return child2;
	}
	public void setChild2(Node child2) {
		this.child2 = child2;
	}
	public Node getChild3() {
		return child3;
	}
	public void setChild3(Node child3) {
		this.child3 = child3;
	}
	public Node getChild4() {
		return child4;
	}
	public void setChild4(Node child4) {
		this.child4 = child4;
	}
	public Node getChild5() {
		return child5;
	}
	public void setChild5(Node child5) {
		this.child5 = child5;
	}
	public void setVisited(int visited) {
		this.visited = visited;
	}
	public int getVisited() {
		return visited;
	}
	public Node getNode()
	{
		return this;
	}

}
